module.exports = class extends think.Model {
    get relation() {
        return {
            user_size: {
                type: think.Model.BELONG_TO,
                key: 'usersizeid',
                fKey: 'id',
                field: 'id,username',
            },
            size: {
                type: think.Model.BELONG_TO,
                key: 'sizeid',
                fKey: 'sizeid',
                field: 'sizeid,size'
            },
            order_custom: {
                type: think.Model.HAS_MANY,
                key: 'id',
                fKey: 'order_goods_id'
            },
            version: {
                type: think.Model.BELONG_TO,
                key: 'versionid',
                fKey: 'versionid',
                field:'versionid,version'
            },
            words: {
                type: think.Model.BELONG_TO,
                key: 'words_id',
                fKey: 'id',
                field:'id,words_name'
            },
            words_color: {
                type: think.Model.BELONG_TO,
                key: 'words_color_id',
                fKey: 'id',
                field:'id,color'
            }
        };
    }
};
